home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / var / db / pkg / sys-devel / automake-1.5 / automake-1.5.ebuild < prev    next >
Encoding:
Text File  |  2005-10-16  |  1.7 KB  |  58 lines

  1. # Copyright 1999-2005 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/sys-devel/automake/automake-1.5.ebuild,v 1.24 2005/08/23 23:58:59 vapier Exp $
  4.  
  5. inherit eutils
  6.  
  7. DESCRIPTION="Used to generate Makefile.in from Makefile.am"
  8. HOMEPAGE="http://sources.redhat.com/automake/"
  9. SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
  10.  
  11. LICENSE="GPL-2"
  12. SLOT="${PV:0:3}"
  13. KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ~ppc-macos s390 sh sparc x86"
  14. IUSE=""
  15.  
  16. DEPEND="dev-lang/perl
  17.     sys-devel/automake-wrapper
  18.     >=sys-devel/autoconf-2.59-r6
  19.     sys-devel/gnuconfig"
  20.  
  21. src_unpack() {
  22.     unpack ${A}
  23.     cd "${S}"
  24.     epatch "${FILESDIR}"/${P}-target_hook.patch
  25.     epatch "${FILESDIR}"/${P}-slot.patch
  26.     epatch "${FILESDIR}"/${P}-test-fixes.patch #79505
  27.     sed -i \
  28.         -e "/^@setfilename/s|automake|automake${SLOT}|" \
  29.         -e "s|automake: (automake)|automake v${SLOT}: (automake${SLOT})|" \
  30.         -e "s|aclocal: (automake)|aclocal v${SLOT}: (automake${SLOT})|" \
  31.         automake.texi || die "sed failed"
  32.     export WANT_AUTOCONF=2.5
  33. }
  34.  
  35. src_install() {
  36.     make install DESTDIR="${D}" || die "make install failed"
  37.  
  38.     local x=
  39.     for x in aclocal automake ; do
  40.         mv "${D}"/usr/bin/${x}{,-${SLOT}} || die "rename ${x}"
  41.         mv "${D}"/usr/share/${x}{,-${SLOT}} || die "move ${x}"
  42.     done
  43.  
  44.     dodoc NEWS README THANKS TODO AUTHORS ChangeLog
  45.     doinfo *.info
  46.  
  47.     # remove all config.guess and config.sub files replacing them
  48.     # w/a symlink to a specific gnuconfig version
  49.     for x in guess sub ; do
  50.         dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
  51.     done
  52. }
  53.  
  54. pkg_postinst() {
  55.     einfo "Please note that the 'WANT_AUTOMAKE_1_5=1' syntax has changed to:"
  56.     einfo "  WANT_AUTOMAKE=1.5"
  57. }
  58.